home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
edit
/
vedt.zip
/
COMPILE.VDM
< prev
next >
Wrap
Text File
|
1990-10-17
|
17KB
|
973 lines
R*
R* Compiler Support Macro - Version 1.41
R* Last Change: 10/16/90
R* To save disk space, all comments have been stripped. However, the
R* COMPILE.VDM supplied with the real VEDIT and VEDIT PLUS are fully
R* commented.
R*
ES 7 1
ES 8 2
ES 9 1
ES 10 1
.waXS(92)
+7YEA
0XS(101)
"E XS(102)
21[ (.rt(#102)==2)[ 1XA(101) ] 1XA(102) ]
Q101[
YA YEN
YT"Registers E - Y may contain files. Do you want to Save them?" YEN
YT"[S]ave files; [A]bandon files; [C]ancel macro : "
[ XK(100)"" Q100&95XS(100) (Q100=="S | Q100=="A | Q100=="C)JL YA ] Q100YD
(Q100=="C)[ JO ]
"E XS(102)
21[
(.rt(#102)==2)[
EE(#102)
((Q100=="S) & .of)[ EY ]
@EQY
]
1XA(102)
]
]
RI(y)"EE(z) B 2F/!START!/ 0L -#K #:$S/R*|B|Y|>// EE(@) RJ(z)"
RJ(y)
!START!
(Q81<>302110 & Q81<>302111)[
0XS(99)
0XS(93)
0XS(82)
1XS(83)
302110XS(81)
-1XS(80)
0XS(79)
RE(k)
RI(t)"Error in COMPILE.CNF parameter: "
+RL(u) COMPILE.CNF
EE(u)
B :N"SUPPORTPATH="
.es[ RI(+t)"SUPPORTPATH" JP"CNFERROR" ]
.pXBB :$N"|{|B,|>}" .es[ JP"CNFERROR" ]
-(.n+1)C $EM"\" .er[ C I"\" ]
.bb,.pRC(p) -XBB
.ed[ RE(p) ]
0XS(101)
"NXS(100)
(.sd==3)[
B :N"COLORDISPLAY=" .cXS(100)
.es[ 1XA(101) RI(+t)"COLORDISPLAY" ]
(Q100=="?)[
YEC YEN
YT"Do you have a Color display on your computer (Y/N)? "
[ XK(100)"" Q100&95XS(100) (Q100=="Y | Q100=="N)JL YA ] Q100YD
]
(Q100=="N)[ YYM ]
]
(Q100=="Y | .ed==0)[
B :N"INCLUDECOLOR=" .vXS(87) .es[ 1XA(101) RI(+t)"INCLUDECOLOR" ]
B :N"OPTIONSCOLOR=" .vXS(88) .es[ 1XA(101) RI(+t)"OPTIONSCOLOR" ]
B :N"HELPCOLOR=" .vXS(89) .es[ 1XA(101) RI(+t)"HELPCOLOR" ]
B :N"ERRORCOLOR=" .vXS(90) .es[ 1XA(101) RI(+t)"ERRORCOLOR" ]
B :N"MENUCOLOR=" .vXS(91) .es[ 1XA(101) RI(+t)"MENUCOLOR" ]
+Q92YEA
][
7 XS(87)
7 XS(88)
112 XS(89)
112 XS(90)
15 XS(91)
]
B :N"ERRORBEEP=" (.c=="Y)XS(78) .es[ 1XA(101) RI(+t)"ERRORBEEP" ]
Q101[ RI(+t)" not found" JP"CNFERROR" ]
:ED COMPILE.VCO
~.rv[
:ED |RpCOMPILE.VCO
~.rv[
B :N"DEFCOMPILE="
.es[ RI(+t)"DEFCOMPILE" JP"CNFERROR" ]
.pXBB :$N"|>" .es[JP"CNFERROR" ]
.bb,.pRC(r) -XBB
][ +RL(r) |RpCOMPILE.VCO ]
][ +RL(r) COMPILE.VCO ]
RR(r,j)
EE(v) B#K RG(r)
B :$N"|{|B,|>}"
0,.p-.nRC(q)
EE(u)
:ED |Rp|Rq.VCS
~.rv[ RI(t)"Support not found" JP"CNFERROR"]
:ED LINK.VCO
~.rv[
:ED |RpLINK.VCO
~.rv[
B :N"DEFLINK="
.es[ RI(+t)"DEFLINK" JP"CNFERROR" ]
.pXBB :$N"|>" .es[JP"CNFERROR" ]
.bb,.pRC(l) -XBB
][ +RL(l) |RpLINK.VCO ]
][ +RL(l) LINK.VCO ]
:ED DEBUG.VCO
~.rv[
:ED |RpDEBUG.VCO
~.rv[
B :N"DEFDEBUG="
.es[ RI(+t)"DEFDEBUG" JP"CNFERROR" ]
.pXBB :$N"|>" .es[JP"CNFERROR" ]
.bb,.pRC(o) -XBB
][ +RL(o) |RpDEBUG.VCO ]
][ +RL(o) DEBUG.VCO ]
:ED MAKE.VCO
~.rv[
:ED |RpMAKE.VCO
~.rv[
B :N"DEFMAKE="
.es[ RI(+t)"DEFMAKE" JP"CNFERROR" ]
.pXBB :$N"|>" .es[JP"CNFERROR" ]
.bb,.pRC(m) -XBB
][ +RL(m) |RpMAKE.VCO ]
][ +RL(m) MAKE.VCO ]
EQY
]
(Q81==302110)[
302111XS(81)
+RA(z)
JO
]
(Q99==1)[ JP"OP-O-E-1" ]
Q82>0[
YEN XK(100)"BREAKOUT! - Press any key to continue..."
Q100=24[ -RA JO ]
0XS(79)
]
!MAIN!
+RA(z)
ES 8 2
ES 5 1
1RPROT(f,z)
Q79>0[ JP"MAKE_LOOP" ]
0XS(98)
1XS(82)
22085YYE
.rt(g)=2[ EE(g) EQY ]
.rt(h)=2[ EE(h) EQY ]
.rt(n)=2[ EE(n) EQY ]
.rt(u)=2[ EE(u) EQY ]
.rt(v)=2[ EE(v) EQY ]
RE(t)
EE(@)
Q80>-1[
:EZY
.u(x)>0[ EB |Rx Q80EJ .c=10[ -1c ] ]
-1XS(80)
]
RE(x)
.of[
YR(x) +:EW -YR
~.u(w)[ RR(x,w) ]
]
Q83>0[
0XS(83)
+RL(y) |Rp|Rq.VCS
RR(j,r)
]
(Q86==302110)[
0XS(86)
1XS(93)
JP"OPTION-R"
]
YWI YWB(h) 1 YWR(m) 45
-V
YWS(h) Q89YEA YEC YT" Select desired option"
YWS(m) Q91YEA YEC
YT" COMPILER SUPPORT Ver. 1.41"
YEN YT"---------------------------------------------"
YEN YT" Compiler Name.." 0XS(96) M(y)
YEN YT" Compiler......." RD(r)
YEN YT" Linker........." RD(l)
YEN YT" Debugger......." RD(o)
YEN YT" Make..........." RD(m)
YEN YT" Project File..." RD(w)
YEN YT" Edit File......" RD(x)
YEN YT" Default Ext... Edit="
EE(v) EQY 4XS(96) M(y) RT(v)
YT" Proj="
EE(v) EQY 5XS(96) M(y) RT(v)
YT"
E..Edit current file S..Select compiler
N..Edit new file O..Change options
P..Specify project G..Goto DOS
C..Run Compiler R..Reexamine errors
L..Run Linker Q..Quit support
D..Run Debugger X..Exit VEDIT
M..Run Make
Enter Letter: "
[
:XK(84)//
Q84&95XS(84) Q84=26[ JN ]
EE(v) B #K Q84EI B
$N"|{E,N,P,C,L,D,M,S,O,G,R,Q,X,}"
~.es[ JL ]
Q78[ YA ]
]
-1T
YEN
JP"OPTION-|Rv"
!CONTBEEP!
Q78[ YA ] YEN YEB
!CONTMAIN!
XK(84)"Press any key to continue..." YEN
JP"MAIN"
!OPTION-!
0RPROT(f,z)
-RA JO
!OPTION-E!
12XS(98)
~.u(x)[
EE(v) EQY :RQ(v)" File: "
~.u(v)[ 4XS(96) M(y) ]
RF(v) |Rv
~.u(v)[ JP"MAIN" ]
RR(v,x)
EE(@) EB|Rx
]
YWD(m)
YWS(h) Q89YEA YEC
YT"Edit file; press ESC to return to Compiler Support menu"
0XS(82) EE(@) V
JP"START"
!OPTION-N!
13XS(98)
EE(@)
.oa[
YT" Save current file (Y/N)? "
#[
XK(84)"" Q84&95XS(84)
Q84="Y[ YT"Y" :EY JL ]
Q84="N[ YT"N" EZY JL ]
Q78[ YA ]
]
YEN
][
EZY
]
RE(x)
JP"OPTION-E"
!OPTION-G!
:RQ(i)" DOS Command: "
.u(i)>0[
YWS(@) YEB -YWZ
@OC"|Ri"
][
YWI .sl-1YEV
OS
]
JP"MAIN"
!OPTION-X!
-:EK |RkVCS.TMP
YWI
EE(@) .oa[
Q78[ YA ] YEN
YT"The Edit File has not been saved! Do you want to save it?" 2YEN
YT"[S]ave file; [A]bandon file; [C]ancel, return to main menu : "
[ XK(100)"" Q100&95XS(100) (Q100=="S | Q100=="A | Q100=="C)JL Q78[ YA ] ] Q100YD
Q100="C[ JP"MAIN" ]
Q100="S[ EY ]
Q100="A[ EQY ]
]
(.rt(a)==2 | .rt(b)==2 | .rt(c)==2 | .rt(d)==2) [
Q78[ YA ] YEN
YT"Registers A - D may contain files. Do you want to Save them?" 2YEN
YT"[S]ave files; [A]bandon files; [C]ancel, return to main menu : "
[ XK(100)"" Q100&95XS(100) (Q100=="S | Q100=="A | Q100=="C)JL Q78[ YA ] ] Q100YD
Q100="C[ JP"MAIN" ]
.sl-2YEV YT"VEDIT - Compiler Support" YEN
Q100="S[ EXA ]
Q100="A[ EQAY ]
]
.sl-2YEV YT"VEDIT - Compiler Support" YEN
EQAY
!OPTION-Q!
YWD(m) YWD(h)
-:EK |RkVCS.TMP
EE(s) EQY EE(v) @EQY
ES 8 0
0XS(81)
0RPROT(f,z)
0YYE
-RA
RI(y)"EE(z) @EQY +JO"
RJ(y)
!OPTION-P!
14XS(98)
0XS(93)
EE(v) EQY :RQ(v)" File: "
~.u(v)[ 5XS(96) M(y) ]
RF(v) |Rv
~.u(v)[ JP"MAIN" ]
:ED |Rv
~.rv[
YEN YT" Project file not found!"
JP"CONTBEEP"
]
RR(v,w)
~.u(x)[
RR(w,x)
EE(@) EB|Rx
]
JP"MAIN"
!OPTION-R!
25XS(98)
Q93=0[
YEN YT" Errors unavailable!" YEN
JP"CONTMAIN"
]
YWD(m)
JP"OP-C-COMM"
!OPTION-S!
16XS(98)
EE(v) EQY
.wl-1YEV YEL
:RQ(v)" (Do not include path or .VCS extension)
Compiler: "
EE(u) B #K RG(v) B $N"|{:,\,.}"
~.es[
YEN YT"Paths and extensions not allowed!"
JP"CONTBEEP"
]
~.u(v)[ RI(v)"*" ]
RF(v) |Rp|Rv.VCS
~.u(v)[ JP"MAIN" ]
:ED |Rv
~.rv[
YWS(m) YEN YT" Specified compiler not found!"
JP"CONTBEEP"
]
EE(v) B
$N"|{ ,.,|>}" -.nC #D
Z -$N"|{\,:,|<}" .nC 0K
EE(@)
RR(v,q)
:ED |Rq.VCO
~.rv[
:ED |Rp|Rq.VCO
~.rv[ RI(r)"|Rq -proj.ext"
][
+RL(r) |Rp|Rq.VCO
]
][
+RL(r) |Rq.VCO
]
EE(u) B #K
RG(r)
B .pXBB N"|>" .bb,.pRC(r)
L .eofJP"OPTION-S-1"
.pXBB N"|>"
(.p>.bb)[ .bb,.pRC(l) ]
L .eofJP"OPTION-S-1"
.pXBB N"|>"
(.p>.bb)[ .bb,.pRC(o) ]
L .eofJP"OPTION-S-1"
.pXBB N"|>"
(.p>.bb)[ .bb,.pRC(m) ]
!OPTION-S-1!
-XBB
RR(r,j)
1XS(83)
0XS(93)
JP"MAIN"
!OPTION-O!
20XS(98)
0XS(99)
YWD(o)
YWS(m) Q91YEA YEC
YEN YT" Change Options Sub-menu"
YEN YT"---------------------------------------------" YEN
YEN YT" Compiler Name.." 0XS(96) M(y)
YEN YT" Compiler......." RD(r)
YEN YT" Linker........." RD(l)
YEN